home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
B-Book Series
/
(k)b2.d64
/
xmasfile
< prev
Wrap
Text File
|
2007-02-28
|
968b
|
37 lines
0010 DIM RECIPIENT$ OF 30, SENDER$ OF 30
0020 DIM DATE$ OF 20, ANSW$ OF 10
0030 //
0040 WRITEFROM(5)
0050 INPUT "WHAT DATE (E.G. 12 DECEMBER 1980)? ": DATE$
0060 SENDER$:="HANNIBAL"
0070 //
0080 OPEN FILE 2,"XMAS",READ
0090 REPEAT
0100 READ FILE 2: RECIPIENT$
0110 WRITECARD
0120 FOR LN:=1 TO 3 DO PRINT
0130 INPUT "PRESS THE RETURN-KEY: ": ANSW$
0140 UNTIL EOF(2) //END-OF-FILE//
0150 CLOSE
0160 WRITEFROM(5)
0170 PRINT "NO MORE XMAS CARDS."
0180 PRINT "DON'T FORGET TO STAMP THEM."
0190 END
0200 //
0210 PROC WRITECARD
0220 WRITEFROM(5)
0230 PRINT " ODDINGTON, ",DATE$
0240 PRINT
0250 PRINT "DEAR ",RECIPIENT$
0260 PRINT
0270 PRINT "I WISH YOU A MERRY CHRISTMAS AND"
0280 PRINT "A HAPPY AND PROFITABLE NEW YEAR."
0290 PRINT " LOVE FROM"
0300 PRINT " ",SENDER$
0310 ENDPROC WRITECARD
0320 //
0330 PROC WRITEFROM(LINE)
0340 PRINT CHR$(147) //CLEAR//
0350 FOR I:=1 TO LINE DO PRINT //CURSOR DOWN
0360 ENDPROC WRITEFROM